package com.bsj.power.common.def.protocol.rtp;

/**
 * @ClassName RtpParameterSet
 * @Description rtp参数集
 * @Author zhoushubin
 * @Date 2022/3/23 9:34
 **/
public class RtpParameterSet {
    /**
     * 1078音视频编码类型定义
     */
    public static int rtpCodeTypeH265 = 99;
    public static int rtpCodeTypeH264 = 98;

    /**
     * Fd音视频编码类型
     */
    public static byte fdVideoCodeTypeMpeg = 0;
    public static byte fdVideoCodeTypeH264 = 1;
    public static byte fdVideoCodeTypeMpjg = 2;
    public static byte fdVideoCodeTypeH265 = 3;
    public static byte fdAudioCodeTypeAdpcm = 0;
    public static byte fdAudioCodeTypeG711A = 1;
    public static byte fdAudioCodeTypeG726 = 2;
    public static byte fdAudioCodeTypeAcc = 3;

    // H264格式
    // NALU类型
    public static byte naluTypeSPSH4 = 7;
    public static byte naluTypeNotIDRH4 = 1;
    public static byte naluTypeIDRH4 = 5;
    // H265格式
    // NALU类型
    public static byte naluTypeVPSH5 = 32;
    public static byte naluTypeSPSH5 = 33;
    public static byte naluTypePPSH5 = 34;
    public static byte naluTypeSEIH5 = 39;
    // BP帧
    public static byte naluTypeNotIDRH5 = 1;
    public static byte naluTypeIDRH5 = 19;

    // FLV
    // FLV的CodecId类型
    public static byte flvCodecIdH264 = 0x7;
    public static byte flvCodecIdH265 = 0xC;
}
